/*
 * drv_tim.h
 *
 *  Created on: Dec 17, 2022
 *      Author: hongwei_zhu
 */

#ifndef USER_DRV_TIM_H_
#define USER_DRV_TIM_H_

#include "ch32v20x.h"
#include "CONFIG.h"
#include "FreeRTOS.h"
struct gtim_type{
    void (*init)(u16);
    void (*start)(void);
    void (*pause)(void);
    void (*callback)(void);
};
extern struct gtim_type timer2;
extern struct gtim_type timer3;
extern struct gtim_type timer4;
#endif /* USER_DRV_TIM_H_ */
